package com.qianniu.napi.admin.service.impl;

import com.qianniu.napi.admin.entity.ChoujiangLog;
import com.qianniu.napi.admin.mapper.ChoujiangLogMapper;
import com.qianniu.napi.admin.mapper.GoodsMapper;
import com.qianniu.napi.admin.service.IChoujiangLogService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chenxuebin
 * @since 2018-12-14
 */
@Service
public class ChoujiangLogServiceImpl extends ServiceImpl<ChoujiangLogMapper, ChoujiangLog> implements IChoujiangLogService {

    @Autowired
    private ChoujiangLogMapper goodsMapper;

    public List<ChoujiangLog> getToujiang(String cjdate,String mpid){

        return goodsMapper.getToujiang(cjdate,mpid);
    }

    public List<ChoujiangLog> getToujiangbygid(String cjdate,String gid){

        return goodsMapper.getToujiangbygid(cjdate,gid);
    }

    public List<ChoujiangLog> getMyToujiang(Long uid,String mpid){

        return goodsMapper.getMyToujiang(uid,mpid);
    }

    public List<ChoujiangLog> getMyToujiangbygid(String gid){

        return goodsMapper.getMyToujiangbygid(gid);
    }

}
